import request from '@/utils/request'

// 查询费用管理列表
export function listCostManage(query) {
  return request({
    url: '/mes/wm/costManage/list',
    method: 'get',
    params: query
  })
}

// 查询费用管理详细
export function getCostManage(costManageId) {
  return request({
    url: '/mes/wm/costManage/' + costManageId,
    method: 'get'
  })
}

// 新增费用管理
export function addCostManage(data) {
  return request({
    url: '/mes/wm/costManage',
    method: 'post',
    data: data
  })
}

// 修改费用管理
export function updateCostManage(data) {
  return request({
    url: '/mes/wm/costManage',
    method: 'put',
    data: data
  })
}

// 删除费用管理
export function delCostManage(costManageId) {
  return request({
    url: '/mes/wm/costManage/' + costManageId,
    method: 'delete'
  })
}
export function treeSelectCostType() {
  return request({
    url: '/mes/wm/costManage/treeSelect',
    method: 'get'
  })
}
export function getCostType() {
  return request({
    url: '/mes/wm/costManage/getCostTypeList',
    method: 'get'
  })
}
